package com.hj.pet.api;

import com.hj.pet.model.PetInfo;
import com.hj.pet.model.QueryCondition;
import com.hj.pet.model.ReturnT;

import java.util.List;

public interface PetShowService {
    public int save(PetInfo petInfo);

    public int updateById(PetInfo petInfo);

    PetInfo findPetById(int petId);

    List<PetInfo> findPetsByType(String type);

    List<PetInfo> findPetsByPrice(int price1, int price2);

    List<PetInfo> findPetsByUserAccount(String user_account);

    List<PetInfo> findPetsByPetName(String pet_name);

    int delPetById(int petId);

    List<PetInfo> searchByQuery(QueryCondition condition);

    List<PetInfo> findAll();

    ReturnT<?> addPet(PetInfo petInfo);
}
